package cn.wzvtc.soft14.Service;

import cn.wzvtc.soft14.repository.StudentInfoRepo;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by asus on 2016/6/15.
 */
@Service
public class StudentInfoService {

    @Autowired
    private StudentInfoRepo studentInfoRepo;

    public List select()
   {
       return (List)this.studentInfoRepo.findAll();
   }

    public List getStudentInfo(String StudentId){
        return this.studentInfoRepo.findByStudentId(StudentId);
    }


}
